import json

class BasicInformation:
    def __init__(self, ChineseFields, Fields, FieldsValue, width=50, urlFlag="0", uploadFlag="0", children=None):
        if children is None:
            children = []
        self.ChineseFields = ChineseFields
        self.Fields = Fields
        self.FieldsValue = FieldsValue
        self.width = width
        self.urlFlag = urlFlag
        self.uploadFlag = uploadFlag
        self.children = children

    def __repr__(self):
        return json.dumps(self, default=lambda o: o.__dict__, ensure_ascii=False, indent=4)

    def to_dict(self):
        return {
            'ChineseFields': self.ChineseFields,
            'Fields': self.Fields,
            'FieldsValue': self.FieldsValue,
            'urlFlag': self.urlFlag,
            'uploadFlag': self.uploadFlag,
            'children': self.children,
            'width': self.width
        }